package com.balabala.api;

import com.balabala.dto.VenuesDto;
import com.balabala.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;



/**
 * @Author 何涛
 * @Date: 2023/05/05/ 14:51
 * @description 场馆远程调用接口
 */
@FeignClient(value = "gym-user-service",contextId = "venuesFeign")
public interface VenuesFeignClient {
    /**
     * 根据id查询场馆信息
     * @param venuesId 场馆id
     * @return
     */
    @GetMapping("/admin/venues/getVenuesById/{id}")
    public Result<VenuesDto> getVenuesById(@RequestParam @PathVariable("id")Long venuesId);

}
